import { AddFormatFunc, forRuleType } from "../types";

AddFormatFunc<forRuleType>({

	type: "FOR",

	handle: (rule, FMC) => {
		return `for(${FMC(rule[1][0])}; ${FMC(rule[1][1])}; ${FMC(rule[1][2])}){\n${rule[2].map(item => FMC(item)).join("\n")}\n}`;
	},

})
